package com.jp.knowledge.adapter;

import android.content.Context;
import android.support.annotation.NonNull;

import com.jp.knowledge.R;
import com.jp.knowledge.model.PopularSearchModel;
import com.jp.knowledge.my.base.RecycleVAdapter;
import com.jp.knowledge.my.base.RecycleVHolder;

import java.util.List;


/**
 * Created by 528787067@qq.com on 2017/4/1.
 */

public class HotSearchAdapter extends RecycleVAdapter<PopularSearchModel> {

    public HotSearchAdapter(Context context, @NonNull List<PopularSearchModel> list) {
        super(context, list);
    }

    @Override
    public int getLayoutId(int viewType) {
        return R.layout.item_hot_search;
    }

    @Override
    public void onBind(RecycleVHolder holder, int position) {
        holder.setTextView(R.id.item_title, getData(position).getTagName());
    }
}
